<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>NBA梦之队</title>
<link rel="stylesheet" href="<?php echo site_url();?>/public/css/style.css?v=<?=random_string('numeric')?>">
</head>

<body>
<?php if ($authorize === FALSE): ?>
<a class="author" href="<?=site_url('callback/authorize')?>"></a>
<?php endif; ?>
<div class="content">
  <div class="head">
    <div class="head_title" id="level">第1关</div>
    <div><b class="clock"></b><span id="m_t"></span>s</div>
  </div>
  <div class="game_content" id="geme_content"> </div>
</div>
 <dl class="gift_dialog_confirm" id="gift_dialog_confirm"><dt id="gift_text_false">继续闯关得288元的礼包?</dt><dd><a href="javascript:;" id="sure">是</a><a href="javascript:;" id="cancel">否</a></dd></dl>
<div class="mask" id="mask"></div>


<div class='share' id='share'>每次分享朋友圈便可以增加挑战次数哦<b class="share_back"></b><br><br>
<br>
<br>

<br>
	<a href="javascript:;" class="origin_btn" id="share_restart_btn" style="-webkit-box-shadow: inset 0px 1px 1px #ffad76,0px 2px 1px #19323b;">重新闯关</a>
</div>



<div class='no_author' id='no_author'></div>

<div class='game_rule' id='game_rule'>
  <div class="grule_content">
    <h3>游戏规则</h3>
    <p>
1、	玩家首次进入游戏，有两次闯关机会。<br>
2、	玩家闯关失败后，可以通过分享到朋友圈或发送给朋友来获取闯关机会。<br>
3、	第<?php echo $NBA0?>、<?php echo $NBA1?>、<?php echo $NBA2?>关卡设置88元、288元和588元的游戏礼包码奖励。虚拟奖励每人仅限一种。<br>
4、	获得礼包码后，玩家还有机会冲刺实物幸运大奖！<br>
5、	当前闯关数排名前三的玩家可选在活动页面上输入手机、姓名及收获地址，否则将视为放弃奖励。<br>
6、	玩家领取到礼品码必须在2014-12-31 23:59:59秒之前在游戏内填写兑换，过期视为放弃奖品。<br>
<img src="<?php echo site_url();?>public/images/shose.jpg" width="80%"/><br>
<img src="<?php echo site_url();?>public/images/coast.jpg" width="80%"/><br>
<img src="<?php echo site_url();?>public/images/polo.jpg" width="80%"/><br>
7、	活动结束后10个工作日内，我们将在总闯关数排名前三的玩家中抽取获奖用户。<br>
8、	本次活动最终解释权归《NBA梦之队》运营团队所有。
</p>
    <a href="javascript:;" id="rule_close" class="origin_btn">我知道了</a>
    <a href="http://nba.mobage.cn/" class="gray_btn">下载NBA梦之队</a>
    </div>
</div>




<div class='pop restart' id='restart'>
  <div>

    <div class="rest_txt">每次分享朋友圈便可以增加挑战次数哦<b class="share_icon"></b></div>
    <div class="rest_tree"><span class="res_level" id="t_pos"></span></div>
    <div class="congratulate">最高游戏排名<span class="res_level"></span>位</div>
    <div class="cong_gift" id="cong_gift">
      可以获得88元道具礼包<br>
      闯过40关可以获得288礼包<br>
      剩余游戏次数：0
    </div>
    <div class="restart_btnzone">

    	<a href="javascript:;" class="green_btn" id="get_gift_btn">领取88元道具礼包</a>
    	<a href="javascript:;" class="origin_btn" id="restart_btn">重新闯关</a>
        <!--<a href="javascript:;" class="gray_btn">排行榜</a> -->
        <a href="http://nba.mobage.cn/" class="gray_btn">下载NBA梦之队</a>
        <a href="javascript:;" class="rule_btn" id="rule_pop">游戏规则</a>
    </div>
  </div>
 <!-- <div >您的当前排名：<span id="c_pos"></span></div>
  <div >您的最好排名：<span id="t_pos"></span></div>-->

  </div>


<div class='gift_codezone' id='gift_code'>
	<div class="gift_code_icon"></div>

	<div class="gift_contxt">恭喜你获得88元道具礼包</div>
    <div class="gift_pack_code" id="gift_pack_code"></div>
    <a href="javascript:;" class="origin_btn" id="gift_code_back">返回继续挑战</a>
    <a href="http://nba.mobage.cn/" class="gray_btn">下载NBA梦之队</a>
</div>


<div class='form_contact' id='form'>
    <div class="fcontent">
    	<div id="finput">
        <h2>请填写您的联系方式</h2>
        <div>姓名：<input type="text" maxlength="10"></div>
        <div>电话：<input type="text" maxlength="11"></div>
        <div>地址：<input type="textarea"></div>
        <div class="error">以上均为必填项目不能为空</div>

        <a href="javascript:;" class="origin_btn" id="contact_btn">提交</a>
        <a href="javascript:;" class="green_btn" id="back_game_form_play">返回继续挑战</a>
        <div align="center">我们会按照您填写的联系方式给您邮寄奖品！</div>

        </div>
        <div id="fstatus">
       		<p>您的提交已成功！<br>
               活动时间：12月23日  -  12月30日23点59分59秒。<br>
			   活动结束后10个工作日内，我们将在总闯关数排名前三的玩家中抽取获奖用户。
            </p>
            <a href="javascript:;" class="green_btn" id="back_game_form">返回继续挑战</a>
            <a href="http://nba.mobage.cn/" class="gray_btn">下载NBA梦之队</a>
        </div>
    </div>
</div>





<div class="start " id='start'>
  <div class="logo_zone">
  	<b class="nbalogo"></b>
  	<b class="logo"><b class="dingdang"></b></b>
    <b class="logo_snow"></b>
    <div class="logo_text">寻找你的NBA START</div>
  </div>
  <div class="start_btnzone">
  	<a href="javascript:;" class="origin_btn">开始闯关</a>
    <a href="http://nba.mobage.cn/" class="gray_btn">下载NBA梦之队</a>
    <a href="javascript:;" class="rule_btn">游戏规则</a>
  </div>
  <div class="gift_zone">
    <div class="gift_inner"> <b class="tree"></b> <!--<b class="maidi"></b> -->
    	<b class="peson1"></b>
        <b class="peson2"></b>
        <b class="peson3"></b>
        <b class="peson4"></b>
        <b class="peson5"></b>
        <b class="peson6"></b>
    	<!--<b class="box box_an" id="box"></b>
        <b class="gift gift_an" id="gift"></b> -->
    </div>
  </div>
</div>
<script type="text/javascript" src="<?php echo site_url();?>/public/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
var wxData = {
					"appId": '<?php echo APPID;?>', // 服务号可以填写appId
					"imgUrl" : '<?php echo site_url();?>/public/images/120.jpg',
					"link" : location.href,
					"desc" : '来自NBA梦之队的战书！圣诞大战，闯关获得神秘大奖！',
					"title" : "NBA梦之队",
					"img_width":"120",//这个是分享图片宽度
					"img_height":"120"//这个是分享图片高度
		}

</script>

<script  type="text/javascript" src="<?php echo site_url();?>/public/js/js.js?v=<?=random_string('numeric')?>"></script>
<script type="text/javascript">
var color=['#282828','#515337','#225053','#3e4b5a','#462d5c','#427d5c'];
var color_in=['#bfe2ce','#e8db83','#f9cca7','#fff','#fbd7fd','#c4c4ff'];
	var photo = [['ym','lyc'],
				 ['md','idmz'],
				 ['anr','kb'],
				 ['jlq','zxy'],
				 ['nstlwq','ml'],
				 ['hl','sms'],
				 ['kwr','kc'],
				 ['blnl','stl'],
				 ['hls','kls'],
				 ['fs','fm']];
	//var test = '?user=ovmOVjgu95xEAUTMTVI3zlkAS6Vg&level=5';
    var test = '';
	var play_start_url='<?php echo site_url();?>api/start_game'+test;//start_game end_game share_success
	var play_end_url ='<?php echo site_url();?>api/end_game'+test;
	var play_share_url='<?php echo site_url();?>api/share_success'+test;
	var gift_code_url = '<?php echo site_url();?>api/get_code'+test;
	var share_url = '<?php echo site_url();?>api/share_success'+test;
	var user_url = '<?php echo site_url();?>api/add_user_info'+test;
	var zgame = new game({time:10000,rate:1000,min_t:3000});
	zgame.start_init();
	//zgame.start();


	var level_rate = [<?php echo $NBA0?>,<?php echo $NBA1?>,<?php echo $NBA2?>];


</script>
</body>
</html>
